package demo.DataStrucAndAlgo.SingletonPattern.Prototype;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/13-08-13-16:54
 * @Description：demo.DataStrucAndAlgo.SingletonPattern.Prototype
 */
public class Rectangle extends Shape{
    //private String type;
    public Rectangle(){
        type = "Rectangle";
    }

    @Override
    void drow() {
        System.out.println("       *       ");
        System.out.println("     *   *      ");
        System.out.println("    *     *     ");
        System.out.println("   *       *    ");
        System.out.println("  ***********   ");
    }

}
